core: Rework archive-z mode to have header be uncompressed
authorColin Walters <walters@verbum.org>
Sat, 13 Oct 2012 23:55:16 +0000 (19:55 -0400)
committerColin Walters <walters@verbum.org>
Sun, 14 Oct 2012 21:10:57 +0000 (17:10 -0400)
commit0d04738801a066a96cd8c5bd0c3bb5becabc4032
tree75a18dffc9f6142b08fb9280c4fd61bd47ab0eb5
parent2b90e987bff45dea9f8f0df7876affdc7a9286c7
core: Rework archive-z mode to have header be uncompressed

This is an incompatible change to archive-z, thus it is now renamed to
archive-z2 and ostree will no longer parse archive-z.

I noticed in perf that we were spending some time zlib-decompressing
file headers, which is just inefficient.  Rather than do this, keep
the headers uncompressed, and just zlib-compress content.
src/libostree/ostree-core.c
src/libostree/ostree-core.h
src/libostree/ostree-repo.c
src/libostree/ostree-repo.h
src/ostree/ostree-pull.c
tests/t0002-archivez.sh
tests/t0011-pull-archive-z.sh